import 'package:flutter/material.dart';

class TapWidget extends StatelessWidget {
  final Widget child;
  final Function() ontap;

  const TapWidget(this.child, {super.key, required this.ontap});

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: ontap,
      child: child,
      behavior: HitTestBehavior.translucent,
    );
  }
}
